<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
  <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Image board</title>
    <style type="text/css">
      <!--
      body { font-family: verdana, sans-serif;} }
      img { border:none; }
      #hd { text-align: center; font-size: 3em; padding: .3em;}
      #ft { text-align: center; padding: 1em; }
      .entry { padding: 1.5em; margin-top: 1em;}
      .reply { padding: 1em;}
      .new { padding: 1em;}
      .comment { padding-left: 1em; padding-top: .5em;}
      -->
    </style>
    <link rel="stylesheet" href="/static/css/reset-fonts-grids.css" type="text/css">
  </head>
  <body>
    <div id="doc" class="yui-t7">
      <div id="bd">
        <div class="yui-gb new">
          <div class="yui-u">
          	 <div>{%if not user%}
        		<a href="/login/">login</a>
        	{% else %}
        		hi, {{user.nickname}} | <a href="/logout/">logout</a>
        	{% endif %}
    	</div>
    	
          <form id="edit_form" action="/entry/edit/" enctype="multipart/form-data" method="post">
            <div><label for="id_url">Image Url:</label><input type="text"  name="url" id="id_url" value="{{entry.image.url}}"/></div>
            <div><label for="id_comment">Comment:</label><textarea name="comment" rows="5"style="width: 100%;" id="id_comment">{{entry.comment}}</textarea></div>
            <div ><label for="id_parent">Parent ID:</label><input id="id_parent" type="text" name="parent_id" {%if entry.parent_ref%} value="{{entry.parent_ref.key.id}}" {%endif%}/>
            {%if entry.parent_ref%}  <img src='/image/{{entry.parent_ref.image.key.id}} '/>{%endif%}</div>
            <input type="hidden" name="dont_redirect" value="do not redirect" />
            <input type="hidden" name="key" value="{{entry.key}}" />
            <div><input type="submit" value="Submit" /></div>
          </form>
          </div>
          <div class="yui-u">&nbsp;</div>
        </div>
        

  </body>
</html> 
